at 12:00 "shutdown -s -t 60"为什么到了12:00没有执行命令?

来源:百度知道 编辑:UC知道 时间:2024/05/26 19:46:31
at 12:00 "shutdown -s -t 60"为什么到了12:00没有执行命令?
错在哪里了?如何解决

不能用""。
开始-运行
at 12:00 shutdown -s -t 60

你是用VBS写的关机脚本?可以用定时关机的软件啊。如果就凭这么一句语句,是作不到的。
给你一个定时关机的脚本:
set myshell=wscript.creatobject("wscript.shell")
dim currenttime
dim aa
currenttime=hour(time)
aa=currenttime
do
currenttime=hour(time)
loop until currenttime >=aa+0.5
if currenttime <=17 then
myshell.run "shutdown -s -t 10 -c 系统即将关闭 -f"
else
myshell.run "shutdown -s -t 10 -c 系统即将关闭 -f"
end if

这个脚本是判断如果到了17点就提示10秒后关机。